﻿using System.Linq;
using Microsoft.WindowsAzure.StorageClient;

namespace Sketchial.Data
{
    public class PostDataContext
        : TableServiceContext
    {
        public PostDataContext(string baseAddress, Microsoft.WindowsAzure.StorageCredentials credentials)
            : base(baseAddress, credentials)
        { }

        public IQueryable<PostEntity> PostEntities
        {
            get
            {
                return this.CreateQuery<PostEntity>("Posts");
            }
        }
    }
}
